package 设计模式.结构模式.桥接模式;

/**
 * @author MT
 * @date 2019-11-13 16:17
 */
public class Circle extends Shape {
    private int x, y, radius;

    protected Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        drawAPI.draCircle(radius, x, y);
    }
}
